package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.example.entity.task.MyTask;

import java.util.List;
import java.util.Map;

/**
 * @author 魏锴
 * @description 针对表【tb_task_mytask】的数据库操作Mapper
 * @createDate 2024-01-12 17:43:13
 * @Entity org.example.entity/task.mytask
 */
public interface MyTaskMapper extends BaseMapper<MyTask> {
    List<MyTask> getTaskList(int user_id);

    boolean renewScan(int id);

    boolean renewMove(int id);

    boolean renewExploit(int id);

    int getStatusById(int id);

    boolean acceptTask(int id);

    boolean refuseTask(int id);

    boolean finishTask(int id);

    @MapKey("id")
    List<Map<String, Object>> getIdNameMap(@Param("user_id") int user_id);
}




